cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(test)

find_package(PCL 1.6.0 REQUIRED)
FIND_PACKAGE( OpenCV REQUIRED )

include_directories(${PCL_INCLUDE_DIRS}
					${OpenCV_INCLUDE_DIRS}
					${CMAKE_SOURCE_DIR}/dmd/include
					${CMAKE_SOURCE_DIR}/dmd/libs/tinyxml2/include
					${CMAKE_SOURCE_DIR}/dmd/libs/libcitygml/include)
					
link_directories(${PCL_LIBRARY_DIRS}
				${CMAKE_SOURCE_DIR}/dmd/libs/tinyxml2/lib
				${CMAKE_SOURCE_DIR}/dmd/libs/libcitygml/lib)

add_definitions(${PCL_DEFINITIONS})


SET(src
	main.cpp)
	

add_executable(test ${src})
target_link_libraries(test ${PCL_LIBRARIES} ${OpenCV_LIBS} dmd)